package com.example.ieservice;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ListView;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by richard on 09/04/14.
 */
public class IHMServices extends Activity {
    private ListView listView;
    private List<Row> listRows;


    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.viewservice);

        //Added initialisation from answers
        listRows = new ArrayList<Row>();

        //Add some generic rows to the list for test purposes
        for (int i=0; i<4; i++) {
            listRows.add(new Row(this));
        }

        listView = (ListView)findViewById(R.id.ListView1);
        listView.setAdapter(new RowAdapter(this, listRows));

    }
}